<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}

<div class="main-div">
  <form action="" method="post" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label">地区名称:</td>
        <td><input type="text" name="name" value="{$goods_type.name|escape}" size="40" />
        {$lang.require_field}</td>
      </tr>
      <tr>
        <td class="label">排序(越小越在前):</td>
        <td><input type="text" name="sort" value="{$goods_type.sort}" size="40" /></td>
      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="aid" value="{$goods_type.aid}" />
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          <input type="hidden" name="act" value="{$form_act}" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--
{literal}
onload = function() {
  document.forms['theForm'].elements['name'].focus();
  startCheckOrder();
}

function validate()
{
  var validator = new Validator('theForm');
  validator.required('name', type_name_empty);

  return validator.passed();
}
{/literal}  
//-->
</script>

{include file="pagefooter.htm"}
